home *** CD-ROM | disk | FTP | other *** search
- global gphotoloclist, gpartslist
-
- on testmakeloclist
- global glistfile
- set checktxt to "Check.txt"
- case the runMode of
- "Author":
- set glistfile to the moviePath & checktxt
- "projector":
- set glistfile to the applicationPath & checktxt
- end case
- set alllines to EMPTY
- set gphotoloclist to [:]
- repeat with n = 1 to 60
- set gpartslist to [:]
- if n < 10 then
- set movname to "000" & string(n)
- else
- set movname to "00" & string(n)
- end if
- set the fileName of window movname to "@/dir/" & movname
- open(window movname)
- tell window movname
- updateStage()
- if count(gpartslist) > 0 then
- repeat with m = 1 to count(gpartslist)
- set locallist to [:]
- set myins to getAt(gpartslist, m)
- set num to the pspnum of myins
- addProp(locallist, #loc, the loc of sprite num)
- if the newmem of myins = the member of sprite num then
- addProp(locallist, #cast, 1)
- else
- addProp(locallist, #cast, 0)
- end if
- if the pmode of myins = #rgb then
- addProp(locallist, #rgb, [#redShift: 255, #greenShift: 255, #blueShift: 255])
- end if
- sort(locallist)
- if not (locallist = [:]) then
- set spn to value("#" & string(num))
- addProp(gphotoloclist, spn, locallist)
- end if
- end repeat
- end if
- end tell
- deleteAll(the windowList)
- sort(gphotoloclist)
- set alllines to alllines & string(gphotoloclist) & RETURN
- set gphotoloclist to [:]
- end repeat
- beep()
- set longtext to alllines
- set myio_file to new(xtra("fileIO"))
- createfile(myio_file, glistfile)
- setfinderinfo(myio_file, "TEXT NICS")
- openfile(myio_file, glistfile, 2)
- writestring(myio_file, longtext)
- closefile(myio_file)
- set myio_file to 0
- beep()
- end
-